"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const merchant_1 = require("../merchant");
const shop_1 = require("shop");
exports.stationPath = "/account/";
exports.projectName = "account";
exports.permissions = {};
exports.permissions[`${exports.stationPath}*`] = { roleIds: [merchant_1.merchantRoleId] };
let websiteConfig = {
    requirejs: {
        paths: {
        // "maishu-chitu-admin/static": "node_modules/maishu-chitu-admin/out/static/index"
        }
    },
    menuItems: [
        {
            id: "639B4E53-6DDF-4252-9A5F-63632E22DD1F", name: "收款账号", sortNumber: 80,
            path: "#finance/receivement-account", parentId: shop_1.menuItemIds.setting
        },
    ]
};
let stack = [...websiteConfig.menuItems];
while (stack.length > 0) {
    let item = stack.shift();
    item.roleIds = [merchant_1.merchantRoleId];
    (item.children || []).forEach(child => {
        stack.unshift(child);
    });
}
exports.default = websiteConfig;
